#!/bin/bash
# Let the wrapped binary know that it has been run through the wrapper.
export DOOD_WRAPPER="`readlink -f "$0"`"
echo "$DOOW_WRAPPER"

HERE="`dirname "$DOOD_WRAPPER"`"
echo "$HERE"

## Always use our versions of ffmpeg libs.
## This also makes RPMs find the compatibly-named library symlinks.
if [[ -n "$LD_LIBRARY_PATH" ]]; then
  LD_LIBRARY_PATH="$HERE:$HERE/lib:$LD_LIBRARY_PATH"
else
  LD_LIBRARY_PATH="$HERE:$HERE/lib:"
fi
export LD_LIBRARY_PATH
cd $HERE
exec -a "$0" "../../TSIC" "$@" "--no-sandbox"